package lec06.pm;

import java.io.File;
import java.io.FileWriter;
import java.io.PrintWriter;
import java.util.Scanner;

public class AAddB2 {
	static Scanner cin ;
	static PrintWriter cout;
	static{
		try {
			cin=new Scanner(new File("A.txt"));
			cout=new PrintWriter(new FileWriter("B.txt"));
		} catch (Exception e) {
			// TODO: handle exception
		}
	}

	public static void main(String[] args) {
		while (cin.hasNext())
			cout.println(cin.nextInt() + cin.nextInt());

		cin.close();
		cout.close();
	}

}
